﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Aj.Core;

public partial class feedback : PageBase
{
    protected override void OnLoad(EventArgs e)
    {
        base.OnLoad(e);

        if (IsPost)
        {
            int rel = CustomQuery.Message_Add(Utility.StripHTML(FormParam("title")), Utility.StripHTML(FormParam("username")), "", Utility.StripHTML(FormParam("url")), Utility.StripHTML(FormParam("address")), "", "", Utility.StripHTML(FormParam("qq")), Utility.StripHTML(FormParam("email")), Utility.StripHTML(FormParam("content")));
            if (rel > 0)
            {
                MessageBoxGo("留言成功，谢谢您的配合！", "feedback.html");
            }
            else
            {
                MessageBack("留言失败！");
            }
        }
    }
}